const ProjectRequest = require("../project/project_request.js");
const Url = require("../utils/url.js");

function page(startPage, callback) {
  const URL = Url.newInstance("/barter/score/page");
  URL.setPara('startPage', startPage)
  ProjectRequest.getRequest(URL.get(), callback);
}

function find(callback){
  const url = "/barter/score/all";
  ProjectRequest.getRequest(url, callback);
}

module.exports = {
  page,
  find
};